import http from "@/utils/request";
/**
 * 用户登录方法
 * @param  data
 * @returns
 */
export async function login(data) {
  return await http.login("api/user/login", data);
}

/**
 * 获取用户信息
 * @param token
 * @returns
 */
export async function getInfo() {
  return await http.get("api/sysUser/getInfo");
}

/**
 * 退出登录
 * @returns
 */
export async function logout(param) {
  return await http.post("api/sysUser/logout", param);
}

/**
 * 获取用户菜单信息
 * @returns
 */
export async function getMenuList() {
  return await http.get("api/sysUser/getMenuList");
}
